package demo.list;

import java.util.ArrayList;
import java.util.HashMap;

public class TestList {

    public TestList() {

        System.out.println("<TestList>");
        this.useList();
        this.useSet();
        this.useMap();
        this.useQueue();
        this.useCollection();
    }

    private void __getArrayListSize(ArrayList list) {
        System.out.println(list.size());
    }

    public void useList() {
        System.out.println("useList() -> \r\n");
        ArrayList list= new ArrayList();

        this.__getArrayListSize(list);
        list.add("333");

        this.__getArrayListSize(list);
    }

    public void useSet() {

    }

    public void useQueue() {

    }

    public void useMap() {
        HashMap hash = new HashMap();
        hash.put("one", "yes one");
        System.out.println(hash.size());
    }

    public void useCollection() {

    }
}
